﻿namespace CrazyTalk.Config
{
    public class SecurityConfig
    {
        /// <summary>
        /// 获取配置类实例
        /// </summary>
        /// <returns></returns>
        public static SecurityInfo GetConfig()
        {
            return SecurityConfigFileManager.LoadConfig();
        }

        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <returns></returns>
        public static bool SaveConfig(SecurityInfo apiconfiginfo)
        {
            SecurityConfigFileManager acfm = new SecurityConfigFileManager();
            SecurityConfigFileManager.ConfigInfo = apiconfiginfo;
            return acfm.SaveConfig();
        }
    }
}
